package com.tedu.service;

import java.util.List;

import com.tedu.model.Product;

public interface IProductService {
	public void add(Product product);
	public void delete(int id);
	public void update(Product product);
	public Product load(int id);
	public List<Product> list();
	public List<Product> listAllProduct();
	public Product productItem(int id);
	public void alldelete(int id);
	
	public List<Product> listCategoryProduct(int id);
	public List<Product> selectProductsName(String str);
	public List<Product> selectProductsStatus(int str);
	public List<Product> selectProductsCategory(String str);
	public List<Product> selectProductsDiscount(Double str);
	
	//////
	//新项目
		public List<Product> listAllProductByFeature(int status);
		public List<Product> listAllProductOfDiscount();
		public List<Product> fuzzyQueryAll(String condition);
		public List<Product> fuzzyQueryDiscountProducts(String condition);
		public List<Product> fuzzyQueryByFeature(String condition, int status);
		public List<Product> queryByCategory(int cid);
		public List<Product> fuzzyQueryByCategory(int cid, String condition);
}
